using System;
using System.Collections.Generic;
using System.Text;

using WozLib.UI.Ink.SketchObjects;

namespace WozLib.UI.Ink.SketchProperties
{
  public class OpacityCascadingProperty : CascadingProperty
  {

    public OpacitySketchProperty OpacityProperty
    {
      get { return WozProperty as OpacitySketchProperty; }
      set { WozProperty = value; }
    }


    public OpacityCascadingProperty(List<ISketchObject> iWozObjects, OpacitySketchProperty opacityProperty)
      : base(iWozObjects, opacityProperty)
    {
      if (WozPropertyVariants.Count > 1)
      {
        this.OpacityProperty.Data = 0.9999999;
      }
    }
  }
}
